package com.erp.gather.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.annotation.ExcelDictFormat;
import com.ruoyi.common.core.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 个人商品分享视图对象 erp_seller_collect_product_share
 *
 * @author erp
 * @date 2023-11-16
 */
@Data
@ExcelIgnoreUnannotated
public class ErpSellerProductShareVo {

    private static final long serialVersionUID = 1L;

    /**
     * 个人商品分享表
     */
    @ExcelProperty(value = "个人商品分享表")
    private Long id;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 分享码别名
     */
    @ExcelProperty(value = "分享码别名")
    private String shareName;

    /**
     * 分享码
     */
    @ExcelProperty(value = "分享码")
    private String shareCode;

    /**
     * 商品（id用逗号连接）
     */
    @ExcelProperty(value = "商品", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "i=d用逗号连接")
    private String products;

    /**
     * 分享时间
     */
    @ExcelProperty(value = "分享时间")
    private Date addTime;


}
